package com.ddstation.onsitelaw.mapper;

import com.ddstation.onsitelaw.entity.DtHealthManageInstitutionEntity;
import com.ddstation.onsitelaw.entity.auditentity.DdDoctorEntity;
import com.ddstation.onsitelaw.model.DoctorModel;
import com.ddstation.onsitelaw.model.HealthInstitutionModel;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 忆秋枫
 */
public interface DtHealthManageInstitutionMapper extends Mapper<DtHealthManageInstitutionEntity> {

    /**
     * 根据地区code获取机构信息
     *
     * @param province 省
     * @param city     市
     * @param county   县/区
     * @return List<Map < String, Object>> 对象信息
     */
    List<Map<String, Object>> selectByAddress(@Param("province") String province, @Param("city") String city, @Param("county") String county);

    List<DtHealthManageInstitutionEntity> selectAllHealthManageList(HashMap map);

    void saveInstitutionalInfo(HealthInstitutionModel healthInstitutionModel);

    List<DtHealthManageInstitutionEntity> getHealthManageList(HashMap map);

    List<DoctorModel> getDoctorByInstitutionId(String institutionId);

    DdDoctorEntity selectDoctorInfoByKey(String doctorId);

    void insertInstitutions(List<DtHealthManageInstitutionEntity> entityList);

    void insertDoctors(List<DdDoctorEntity> entityList);

    void insertInstitutionDoctors(List<DdDoctorEntity> entityList);
}